<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title></title>
    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/common.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <script src="js/jquery-1.11.1.js"></script>
    <script>
        $(document).ready(function () {
            var length = 20;
            var html = '';
            for (var a = 1; a <= length; a++) {
                if (a == 1) {
                    html += "<tr>"
                    html += "<td><img src='images/zhou.jpeg'></td>";
                } else if (a == length) {
                    html += "</tr>";
                    break;
                } else if (a % 4 == 0) {
                    html += "</tr><tr>"
                }
                html += "<td><img src='images/zhou.jpeg'></td>";
            }
            $('#rest').html(html);
        });
    </script>
</head>
<body>
<div class="container">
    <nav class="navbar navbar-inverse" role="navigation">
        <div class=" navbar-header">
            <a class="navbar-brand" href="#">吃了么</a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <form class="navbar-form navbar-left" role="search">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="搜索美食">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <a class="navbar-brand" href="#">我的订单</a>
                <a class="navbar-brand" href="#">反馈留言</a>
                <a class="navbar-brand" style="background: url('images/topbar.png') no-repeat transparent" href="#"></a>
                <a class="navbar-brand" href="#">登陆/注册</a>
            </ul>
        </div>
    </nav>
    <div class="restShow">
        <div class="col-md-4">
            <div style="float:left">
                <img class="img-thumbnail restHead" src="images/huizhuan.jpeg">
            </div>
            <div><a>禾绿回转寿司</a></div>
            <div><a>xxxx</a></div>
        </div>
        <div class="col-md-4">
            <a>评价</a>
            <a>留言</a>
        </div>
        <div class="col-md-4" style="text-align: right;">
            <div style="float: left; margin-right: 30px;">
                <div>
                    <H3>2000</H3>
                </div>
                <div>
                    <span>离餐厅距离/米</span>
                </div>
            </div>
            <div>
                <div>
                    <H3>50</H3>
                </div>
                <div>
                    <span>起送价/元</span>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">Panel title</h3>
        </div>
        <div class="panel-body">
            Panel content
        </div>
    </div>
    <div class="jumbotron">
        <div class="row">
            <table class="table table-bordered">
                <tbody id="rest">
                </tbody>
            </table>
        </div>
    </div>
</div>

<script src="js/bootstrap.js"></script>
</body>
</html>